package com.action;

import com.dao.ITabThesecondinstallationgrantsDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabThesecondinstallationgrants;

public class TabThesecondinstallationgrantsAction extends BaseAction implements ModelDriven<TabThesecondinstallationgrants>
{
	TabThesecondinstallationgrants form = new TabThesecondinstallationgrants();
	public TabThesecondinstallationgrants getModel(){
		return form;
	}
	private ITabThesecondinstallationgrantsDao tabThesecondinstallationgrantsDao;
	public void setTabThesecondinstallationgrantsDao(ITabThesecondinstallationgrantsDao tabThesecondinstallationgrantsDao){
		this.tabThesecondinstallationgrantsDao = tabThesecondinstallationgrantsDao;
	}

	public String findByList(){
		form.setPager_count(tabThesecondinstallationgrantsDao.findByCount(form));
		form.setTabtsiglist(tabThesecondinstallationgrantsDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabThesecondinstallationgrantsDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabThesecondinstallationgrantsDao.updateObject(form);
		return "update";
	}

	

}
